package com.rbac.modules.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(description = "部门DTO")
public class DeptDTO {
    
    @Schema(description = "部门ID")
    private Long id;
    
    @Schema(description = "父部门ID")
    private Long parentId;
    
    @NotBlank(message = "部门名称不能为空")
    @Schema(description = "部门名称")
    private String deptName;
    
    @Schema(description = "负责人")
    private String leader;
    
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @Schema(description = "联系电话")
    private String phone;
    
    @Email(message = "邮箱格式不正确")
    @Schema(description = "邮箱")
    private String email;
    
    @Schema(description = "排序")
    private Integer sort;
    
    @Schema(description = "状态（0：禁用，1：启用）")
    private Integer status;
} 